﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="CreateTestPageTwo.aspx.cs" Inherits="CreateTestPageTwo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
        .style3
        {
            width: 759px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">
        <tr>
            <td align="left" class="style2">
               <h2><asp:Label ID="lablCreateTest" runat="server" Text="Create Test"></asp:Label></h2>
            </td>

            <td align="right">
                <h2><asp:Label ID="lablSelQues" runat="server" Text="Select Questions"></asp:Label></h2>
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
                <asp:GridView ID="gvQuestion" runat="server" AutoGenerateColumns="False" 
                     Width="935px" DataKeyNames="QuestionId"
                     BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    CellPadding="2" ForeColor="Black" GridLines="None" 
                    onselectedindexchanged="gvQuestion_SelectedIndexChanged" 
                    onpageindexchanging="gvQuestion_PageIndexChanging" AllowPaging="True" onpageindexchanged="gvQuestion_PageIndexChanged"  
                         >
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                     <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:CheckBox runat="server" ID="cbhead" AutoPostBack="true" OnCheckedChanged="HeaderCheckedChanged"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cb" runat="server"  AutoPostBack="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
<asp:ButtonField CommandName="Select" DataTextField="QuestionId" HeaderText="QuestionId" 
                                SortExpression="QuestionId"></asp:ButtonField>
<asp:ButtonField CommandName="Select" DataTextField="Question" HeaderText="Question" 
                                SortExpression="Question"></asp:ButtonField>
<asp:BoundField DataField="priority" HeaderText="priority" SortExpression="priority"></asp:BoundField>
                        </Columns>
                        <%--<Columns>
                            <asp:ButtonField ButtonType="Link" DataTextField="QuestionId" HeaderText="QuestionId" SortExpression="QuestionId" CommandName="Select" />
                            <asp:ButtonField ButtonType="Link" DataTextField="Question" HeaderText="Question" SortExpression="Question" CommandName="Select" />
                            <asp:BoundField DataField="priority" HeaderText="priority" SortExpression="priority" />
                        </Columns>--%>
                          <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" 
                        HorizontalAlign="Center" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                    </asp:GridView>
            </td>

        </tr>
        <tr>
            <td class="style2" colspan="2">
                <table align="left" cellspacing="2" style="border: 4px outset orange;" width="100%">
                <tr>
                   <td class="style3">
                    <asp:Label ID="lablTotalQues" runat="server" Text="Total no of Question Selected: "></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtTotalNoOfQuestionSelected" runat="server" Text="0"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnTotalQuestion" runat="server" 
                        onclick="btnTotalQuestion_Click" Text="GetTotalNoOfSelectedQuestion" 
                           Width="268px" BackColor="#E49642" BorderColor="#CC7A24" 
                           ForeColor="White" />
&nbsp;&nbsp;&nbsp;
                           <td>
                        <asp:Label ID="lablCuttOff" runat="server" Text="Cuttoff Marks"></asp:Label>
&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtCuttOffmarks" runat="server" Width="99px">0</asp:TextBox>
                    </td>
                     </td> 
                </tr>
                    

                <tr>
                    <td class="style3">
                        <asp:Label ID="lablError" runat="server" ForeColor="Red"></asp:Label>
                </td>
                </tr>

                <tr>
                    <td class="style3">
                    <asp:Button ID="btnBack" runat="server" Text="Back" onclick="btnBack_Click" 
                            BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White" />
&nbsp;
                    <asp:Button ID="btnClear" runat="server" Text="Clear" onclick="btnClear_Click" 
                            BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White" />
&nbsp;&nbsp;
                    <asp:Button ID="btnNext" runat="server" Text="Next" onclick="btnNext_Click" 
                            BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White" />
                </td>
                </tr>

                 </table>
            </td>

        </tr>
    </table>
</asp:Content>

